package com.hqj.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author 王建林
 * @version 1.0
 * @date 2020/10/14
 */
@Data
@TableName("user")
@ApiModel("客户端登陆注册类")
public class ClientUser {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("密码")
    private  String password;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("注销")
    private  Integer cancel;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createBy;
    @ApiModelProperty("名字")
    private String name;
    @ApiModelProperty("盐值")
    private String salt;
}
